package org.brownflat.watergate.domain;

import java.util.List;

/**
 * <p>&copy Rupert Jones 2012</p>
 *
 * @author rup
 */
public class CommentBuilder extends AbstractBuilder<Comment> {
    public CommentBuilder() {
        super(new Comment());
    }

    public CommentBuilder withUser(User user) {
        getEntity().setUser(user);
        return this;
    }

    public CommentBuilder withChildren(List<Comment> children) {
        getEntity().setChildren(children);
        return this;
    }

    public CommentBuilder withComment(String comment) {
        getEntity().setComment(comment);
        return this;
    }

    public CommentBuilder withParent(Comment comment) {
        getEntity().setParent(comment);
        return this;
    }
}
